package com.example.storm.rest;

import com.example.storm.config.ApplicationConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value = "/api")
public class InfoController {
	@Autowired
	private ApplicationConfiguration app;

//	//根据id查询信息
//	@RequestMapping(value = "/findById",method = RequestMethod.GET)
//	public void findById(@RequestParam(value = "id",required = true) int id){
//		System.out.println("开始根据id查询信息！");
//		InfoGet infoGet = new InfoGet();
//		infoGet.setName("void");
//		KafkaProducerUtil.sendMessage(infoGet.toString(), app.getServers(), app.getTopicName());
//	}
}